<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>创建标签</title>
    <link rel="stylesheet" href="https://www.layuicdn.com/layui-v2.5.6/css/layui.css">
</head>

<body>
    <div class="layui-container">
        <h1>创建标签</h1>
        <form class="layui-form" method="post">
            {% csrf_token %}
            <div class="layui-form-item">
                <label class="layui-form-label">标签名称</label>
                <div class="layui-input-block">
                    <input type="text" name="name" required lay-verify="required" placeholder="请输入标签名称"
                        autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="formDemo">提交</button>
                </div>
            </div>
        </form>
    </div>
    <script src="https://www.layuicdn.com/layui-v2.5.6/layui.js "></script>
    <script>
        layui.use('form', function () {
            var form = layui.form;
            form.render();
        });
    </script>
</body>

</html>